Readd the memory leak fix, since the assertion failures were traced to an
authorMatthias Clasen <mclasen@redhat.com>
Wed, 5 Oct 2005 14:11:23 +0000 (14:11 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 5 Oct 2005 14:11:23 +0000 (14:11 +0000)
2005-10-05  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
leak fix, since the assertion failures were traced to
an xchat bug.  (#314696)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkrc.c

index 88ef5e008932e0e900d74c22c992b961e821bce3..480b1d8c87e7f56dd650dc98e7de56f2616c60db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
+       leak fix, since the assertion failures were traced to 
+       an xchat bug.  (#314696)
+       
        * gtk/gtkstyle.c (gtk_style_detach):
        (gtk_style_attach):  Documentation improvements.
        (gtk_style_detach): Assert that the attach_count is > 0.
index 88ef5e008932e0e900d74c22c992b961e821bce3..480b1d8c87e7f56dd650dc98e7de56f2616c60db 100644 (file)
@@ -1,5 +1,9 @@
 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
+       leak fix, since the assertion failures were traced to 
+       an xchat bug.  (#314696)
+       
        * gtk/gtkstyle.c (gtk_style_detach):
        (gtk_style_attach):  Documentation improvements.
        (gtk_style_detach): Assert that the attach_count is > 0.
index ee0899d3e630220dd929dd8648e2348aabc025d7..f13886395e3b775a0b9f63d682e2829e9ac62343 100644 (file)
@@ -1336,7 +1336,10 @@ gtk_rc_clear_realized_style (gpointer key,
                             gpointer data)
 {
   GSList *rc_styles = key;
+  GtkStyle *style = value;
   GSList *tmp_list = rc_styles;
+
+  g_object_unref (style);
  
   while (tmp_list)
     {